package com.meida.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.base.entity.AbstractAllEntity;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.meida.common.mybatis.annotation.TableAlias;

/**
 * 用户及用户用品操作日志表(主键无关联其他表)
 *
 * @author flyme
 * @date 2022-06-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("app_user_optlog")
@TableAlias("userOptLog")
@ApiModel(value="AppUserOptlog对象", description="用户及用户用品操作日志表(主键无关联其他表)")
public class AppUserOptlog extends AbstractAllEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "userOptlogId", type = IdType.ASSIGN_ID)
    private Long userOptlogId;

    @ApiModelProperty(value = "操作类型")
    private String optType;

    @ApiModelProperty(value = "操作值")
    private String content;

    @ApiModelProperty(value = "操作人Ip")
    private String optIp;

    @ApiModelProperty(value = "操作人")
    private Long optUserId;

    @ApiModelProperty(value = "操作人类型")
    private Integer optUserType;

    @ApiModelProperty(value = "用户Id")
    private Long userId;

    @ApiModelProperty(value = "业务类型")
    private String businessType;

    @ApiModelProperty(value = "实体Id(bussessType1为accountId,bussessType2为accountGoodsId)")
    private Long businessId;


}
